PREFIX = test
TARGET = demo
SRC = $(PREFIX).c
DEPEND = $(PREFIX).o

FLAG = -m32  -g #-fno-elide-constructors
LIB = -lpthread

$(TARGET): $(DEPEND)
	gcc -o $(TARGET) ${FLAG} $(DEPEND)  ${LIB}

$(DEPEND) : $(SRC)
	gcc -c  ${FLAG} -o $(DEPEND) $(SRC)

.PHONY : clean
clean :
	rm $(TARGET) *.o

# 目前已安装了32bit 的gcc
